package org.spring.flower.resume.controller;


import org.spring.flower.resume.entity.Info;
import org.spring.flower.resume.service.IInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LianSong
 * @since 2020-03-08
 */
@RestController
@RequestMapping("/resume/info")
public class InfoController {

    @Resource
    private IInfoService iInfoService;

    @GetMapping("/list")
    public List<Info> list(){
        return iInfoService.list();
    }
}
